export function gen() {
  const data = []
  for (let i = 0; i < 10000; i ++) {
    const item = {
      id: i,
      name: 'book ' + (i + 1),
      price: (Math.random() * 100).toFixed(2),
      color: ['blue', 'red', 'yellow'][+new Date() % 3],
      weight: (Math.random() * 100).toFixed(2),
      size: (Math.random() * 10).toFixed(2),
    }
    data.push(item)
  }
  return data
}
